actionApp.controller('View1Controller',['$rootScope','$scope','$http',
function($rootScope,$scope,$http){
	$scope.$on('$viewControllerLoaded',function(){
		console.log("页面加载完成")
	});
	$scope.search=function(){
		personName =$scope.personName;
		$http.get('/search',{
			params:{personName:personName}
		}).success(function(data){
			$scope.person=data;
		})
	}
}]);

actionApp.controller('View2Controller',['$rootScope','$scope',
function($rootScope,$scope){
	$scope.$on('$viewControllerLoaded',function(){
		console.log("页面加载完成")
	});
}]);